package com.demoku.web.domain.test;

import java.io.Serializable;

import org.iff.infra.util.mybatis.service.Dao;

@SuppressWarnings("serial")
public class Ff implements Serializable {

	private String id;
	private String description;
	private String code;
	private String bb;

	public Ff() {
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	public String getBb() {
		return bb;
	}

	public void setBb(String bb) {
		this.bb = bb;
	}
	

	public static Ff get(String id) {
		return Dao.queryOne("Ff_Mapping.getFf", id);
	}

	public static void remove(String id) {
		Dao.remove("Ff_Mapping.deleteFf", id);
	}

	public void save() {
		if (getId() == null) {
			Dao.save("Ff_Mapping.insertFf", this);
		} else {
			Dao.save("Ff_Mapping.updateFf", this);
		}
	}

	public void remove() {
		Dao.remove("Ff_Mapping.deleteFf", getId());
	}
}
